package uo.ri.peristence;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface FacturaGateway {
	
	public void setConnection(Connection con);
	
	public Long getLastInvoiceNumber() throws SQLException;
	
	public Map<String,Object> findById(Long id);
	
	public List<Map<String,Object>> findAll();
	
	public Long save(Map<String,Object> invoice) throws SQLException;
	
	public void delete(Long id);
	
	public void update(Map<String,Object> invoice);
	
	public Map<String,Object> findByNumber(Long number);
	
	
	
}
